/*
 * @文件描述:
 * @版本:
 * @作者:周晨阳
 * @Date:2021-10-12 10:35:02
 */
#include "system.h"
#include "ADC.h"
#if BOARD_INUSE == BOARD_W806
/**
 * @brief :系统初始化
 * @param {*}
 * @return {*}
 */
u8 systemInit()
{
    printf("enter init prj\r\n");

    SystemClock_Config(CPU_CLK_160M);
    ADC_Inilize(ADC_CHANNEL_0, 1000);
}
/**
 * @brief :错误处理
 * @param {*}
 * @return {*}
 */
void Error_Handler(void)
{
    while (1)
    {
        printf("enter error\n");
    }
}
void delayMS(u32 ms)
{
    HAL_Delay(ms);
}
/**
 * @brief :断言
 * @param {uint8_t} *file
 * @param {uint32_t} line
 * @return {*}
 */
void assert_failed(uint8_t *file, uint32_t line)
{
    printf("Wrong parameters value: file %s on line %d\r\n", file, line);
}
#endif